package com.yrh.service.impl;

import com.yrh.bean.TOrderDetails;
import com.yrh.dao.TOrderDetailsDao;
import com.yrh.dao.impl.TOrderDetailsDaoImpl;
import com.yrh.service.TOrderDetailsService;

import java.util.List;
/*订单详细业务层接口实现类*/
public class TOrderDetailsServiceImpl implements TOrderDetailsService {
    private TOrderDetailsDao dao=new TOrderDetailsDaoImpl();
    /*查询订单和订单详细*/
    @Override
    public List<TOrderDetails> byOrderId(int oId) {
        return dao.byOrderId(oId);
    }
    //生成订单详情表
    @Override
    public int addOrderDetail(TOrderDetails orderDetails) {
        return dao.addOrderDetail(orderDetails);
    }
}
